﻿#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
int main()
{
		FILE* pFile;
		//打开⽂件
		pFile = fopen("myfile.txt", "w");
		//⽂件操作
		if (pFile != NULL)
		{
			fputs("fopen example", pFile);
			//关闭⽂件
			fgets(stdout,pFile);
			fclose(pFile);
		}

		return 0;
}


